/**
 *
 * Created by burnning on 2015/11/18.
 */

var app = angular.module("test", []);
app.controller("addname",function($scope) {
    $scope.firstname = "John";
    $scope.secondname = "Doe";
});

var app = angular.module("person",[]);
app.controller("setperson",function($scope) {
   $scope.names = [
       {name:'Tom',age:'14'},
       {name:'Jack',age:'21'},
       {name:'Mary',age:'19'}
   ];
});
var app = angular.module('json', []);
app.controller('customersCtrl', function($scope, $http) {
    $http.get("http://www.runoob.com/try/angularjs/data/Customers_JSON.php")
        .success(function (response) {$scope.names = response.records;});
});



